package com.yunc.modules.chat.service.impl;

import com.yunc.modules.chat.entity.ChatGroupsUser;
import com.yunc.modules.chat.entity.vo.ChatGroupsVO;
import com.yunc.modules.chat.mapper.ChatGroupsUserMapper;
import com.yunc.modules.chat.service.IChatGroupsUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 群用户关联表 service实现
 *
 * @author concong tao
 * @since 2019-03-28
 */
@Service("chatGroupsUserService")
public class ChatGroupsUserServiceImpl extends ServiceImpl<ChatGroupsUserMapper, ChatGroupsUser> implements IChatGroupsUserService {

    @Autowired
    private ChatGroupsUserMapper chatGroupsUserMapper;

    @Override
    public List<ChatGroupsVO> listGroups(Long userId) {
        return chatGroupsUserMapper.listGroups(userId);
    }
}
